package com.cabinet.web.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.cabinet.base.entity.IdEntity;



/**
 * 商品类型实体
 * @author hqz
 *
 */

@Entity
@Table(name="ict_commodities_class")
public class Coclass extends IdEntity  implements Serializable{
	private static final long serialVersionUID = -6784438547869593453L;
	
	//类型编号
	private String claNo;
	//商品类型名称
	private String claname;
	public String getClaNo() {
		return claNo;
	}
	public void setClaNo(String claNo) {
		this.claNo = claNo;
	}
	public String getClaname() {
		return claname;
	}
	public void setClaname(String claname) {
		this.claname = claname;
	}
	
	
/*	@OneToMany(fetch=FetchType.LAZY)
	@JoinColumn(name="commodities_id",foreignKey=@ForeignKey(value=ConstraintMode.NO_CONSTRAINT))
	private Set<Commodities> commodities;*/
	

}
